﻿using WPLottery.Resources;

namespace WPLottery
{
    /// <summary>
    /// Provides access to string resources.
    /// </summary>
    public class LocalizedStrings
    {
        private static AppResources _localizedResources = new AppResources();

//        function insert(item, user, request) {
//    request.execute({
//        success: function() {
//            request.respond();
//            if (item.Channel == "admin")
//            {
//                sendNotifications();
//            }
//        }
//    });


//    function sendNotifications() {
//        var channelTable = tables.getTable('NumberRow');
//        channelTable.read({
//            success: function(channels) {
//                channels.forEach(function(channel) {
//                    if (channel.Channel != "admin")
//                    {
//                        if(item.Number5 == channel.Number5)
//                        {
//                            push.mpns.sendFlipTile(channel.Channel, {
//                                title: "You Won!!!"
//                            }, {
//                                success: function(pushResponse) {
//                                    console.log("Sent push:", pushResponse);
//                                }
//                            });
                            
                            
//                            push.mpns.sendToast(channel.Channel, {
//                                text1: "You Won!!!!",
//                                text2: "abv",
//                                param: "MainPage.xaml?item=5"
//                            }, {
//                                success: function(pushResponse) {
//                                    console.log("toast push:", pushResponse);
//                                }
//                            });
                            
//                        }
//                       else
//                       {
                            
                            
                            
//                       }
//                    }
//                });
//            }
//        });
//    }
//}
        public AppResources LocalizedResources { get { return _localizedResources; } }
    }
}